package com.LeeCode;

/**
 * 判断国际象棋棋盘中一个格子的颜色
 */

public class Code1812 {
    public static void main(String[] args) {

    }

    public boolean squareIsWhite(String coordinates) {
        int row = coordinates.charAt(1) - '0';
        int col = coordinates.charAt(0) - 'a';

        if (row % 2 == 0) {
            return col % 2 == 0;
        } else {
            return col % 2 == 1;
        }
    }
}
